export default {
	"title": '互联网应用开发-在线作业2',
	"testId": '150338',
	"praxiseList": [
		{
			"id": 223951,
			"title": "JavaBean的生命周期中，哪个是用来跟踪用户会话的？",
			"options": "[\"session\",\"request\",\"page\",\"application\"]",
			"answer": "1",
			"type": "single",
			"hard": 1,
			"explain": null,
			"regtime": "2021-06-24 12:01:13",
			"last_time": null,
			"iscorrect": 0,
			"user_answer": ""
		},
		{
			"id": 223952,
			"title": "以下不属于JavaBean作用范围的是（）。",
			"options": "[\"request\",\"session\",\"application\",\"scope\"]",
			"answer": "4",
			"type": "single",
			"hard": 1,
			"explain": null,
			"regtime": "2021-06-24 12:01:13",
			"last_time": null,
			"iscorrect": 0,
			"user_answer": ""
		},
		{
			"id": 223953,
			"title": "给定TheBean类，假设还没有创建TheBean类的实例，以下哪些JSP动作语句能创建这个bean的一个新实例，并把它存储在请求作用域？",
			"options": "[\"<jsp:useBeanname=\\\"myBean\\\"type=\\\"com.example.TheBean\\\"\\/>\",\"<jsp:takeBeanname=\\\"myBean\\\"type=\\\"com.example.TheBean\\\"\\/>\",\"<jsp:useBeanid=\\\"myBean\\\"class=\\\"com.example.TheBean\\\"scope=\\\"request\\\"\\/>\",\"<jsp:takeBeanid=\\\"myBean\\\"class=\\\"com.example.TheBean\\\"scope=\\\"request\\\"\\/>\"]",
			"answer": "3",
			"type": "single",
			"hard": 1,
			"explain": null,
			"regtime": "2021-06-24 12:01:13",
			"last_time": null,
			"iscorrect": 0,
			"user_answer": ""
		},
		{
			"id": 223954,
			"title": "在JSP页面中，正确引入JavaBean的是（）。",
			"options": "[\"<%jsp:useBeanid=”myBean”scope=”page”class=”pkg.MyBean”%>\",\"<jsp:useBeanname=”myBean”scope=”page”class=”pkg.MyBean”>\",\"<jsp:useBeanid=”myBean”scope=”page”class=”pkg.MyBean”\\/>\",\"<jsp:useBeanname=”myBean”scope=”page”class=”pkg.MyBean”\\/>\"]",
			"answer": "3",
			"type": "single",
			"hard": 1,
			"explain": null,
			"regtime": "2021-06-24 12:01:13",
			"last_time": null,
			"iscorrect": 0,
			"user_answer": ""
		},
		{
			"id": 223955,
			"title": "下面哪项不是useBean动作可能的属性值？",
			"options": "[\"contentType\",\"id\",\"scope\",\"class\"]",
			"answer": "1",
			"type": "single",
			"hard": 1,
			"explain": null,
			"regtime": "2021-06-24 12:01:13",
			"last_time": null,
			"iscorrect": 0,
			"user_answer": ""
		},
		{
			"id": 223956,
			"title": "在Servlet过滤器的生命周期方法中，每当传递请求或响应时，web容器会调用（）方法。",
			"options": "[\"init\",\"service\",\"doFilter\",\"destroy\"]",
			"answer": "3",
			"type": "single",
			"hard": 1,
			"explain": null,
			"regtime": "2021-06-24 12:01:13",
			"last_time": null,
			"iscorrect": 0,
			"user_answer": ""
		},
		{
			"id": 223957,
			"title": "J2EE中，以下关于HttpServlet的说法错误的是（）。",
			"options": "[\"HttpServlet是一个抽象类\",\"HttpServlet类扩展了GenericServlet类\",\"HttpServlet类的子类必须至少重写service方法\",\"HttpServlet位于javax.servlet.http包中\"]",
			"answer": "3",
			"type": "single",
			"hard": 1,
			"explain": null,
			"regtime": "2021-06-24 12:01:13",
			"last_time": null,
			"iscorrect": 0,
			"user_answer": ""
		},
		{
			"id": 223958,
			"title": "在Servlet里，能正确获取session的语句是（）。",
			"options": "[\"HttpSessionsession=request.getSession(true);\",\"HttpSessionsession=request.getHttpSession(true);\",\"HttpSessionsession=response.getSession(true);\",\"HttpSessionsession=response.getHttpSession(true);\"]",
			"answer": "1",
			"type": "single",
			"hard": 1,
			"explain": null,
			"regtime": "2021-06-24 12:01:13",
			"last_time": null,
			"iscorrect": 0,
			"user_answer": ""
		},
		{
			"id": 223959,
			"title": "在JSP中，（）动作用于将请求转发给其他JSP页面。",
			"options": "[\"forward\",\"include\",\"useBean\",\"setProperty\"]",
			"answer": "1",
			"type": "single",
			"hard": 1,
			"explain": null,
			"regtime": "2021-06-24 12:01:13",
			"last_time": null,
			"iscorrect": 0,
			"user_answer": ""
		},
		{
			"id": 223960,
			"title": "Servlet中，使用（）接口中定义的（）方法来处理客户端发出的表单数据请求。",
			"options": "[\"HttpServlet、doHead\",\"HttpServlet、doPost\",\"ServletRequest、doGet\",\"ServletRequest、doPost\"]",
			"answer": "2",
			"type": "single",
			"hard": 1,
			"explain": null,
			"regtime": "2021-06-24 12:01:13",
			"last_time": null,
			"iscorrect": 0,
			"user_answer": ""
		},
		{
			"id": 223961,
			"title": "在J2EE的ModelⅡ模式中，模型层对象被编写为（）。",
			"options": "[\"Applet\",\"JSP\",\"Server\",\"JavaBean\"]",
			"answer": "4",
			"type": "single",
			"hard": 1,
			"explain": null,
			"regtime": "2021-06-24 12:01:13",
			"last_time": null,
			"iscorrect": 0,
			"user_answer": ""
		},
		{
			"id": 223962,
			"title": "在J2EE中，使用Servlet过滤器时，需要在web.xml通过（）元素将过滤器映射到Web资源。",
			"options": "[\"<filter>\",\"<filter-mapping>\",\"<servlet>\",\"<servlet-mapping>\"]",
			"answer": "2",
			"type": "single",
			"hard": 1,
			"explain": null,
			"regtime": "2021-06-24 12:01:13",
			"last_time": null,
			"iscorrect": 0,
			"user_answer": ""
		},
		{
			"id": 223963,
			"title": "servlet的生命周期又一系列事件组成，把这些事件按照先后顺序排序，以下正确的是（）。",
			"options": "[\"加载类，实例化，请求处理，初始化，销毁\",\"加载类，实例化，初始化，请求处理，销毁\",\"实例化，加载类，初始化，请求处理，销毁\",\"加载类，初始化，实例化，请求处理，销毁\"]",
			"answer": "2",
			"type": "single",
			"hard": 1,
			"explain": null,
			"regtime": "2021-06-24 12:01:13",
			"last_time": null,
			"iscorrect": 0,
			"user_answer": ""
		},
		{
			"id": 223964,
			"title": "一下关于servlet的说法错误的是（）。",
			"options": "[\"servlet是一种特殊的java类。\",\"servlet通常作为MVC模式中的Controller(控制器),用于连接视图层和模型层。\",\"servlet编译后就是jsp页面。\",\"HttpServlet中有doGet()和doPost()方法。\"]",
			"answer": "3",
			"type": "single",
			"hard": 1,
			"explain": null,
			"regtime": "2021-06-24 12:01:13",
			"last_time": null,
			"iscorrect": 0,
			"user_answer": ""
		},
		{
			"id": 223965,
			"title": "数据库查询结果集是以下哪个类？",
			"options": "[\"ResultSet\",\"Statement\",\"Connection\",\"Result\"]",
			"answer": "1",
			"type": "single",
			"hard": 1,
			"explain": null,
			"regtime": "2021-06-24 12:01:13",
			"last_time": null,
			"iscorrect": 0,
			"user_answer": ""
		},
		{
			"id": 223966,
			"title": "在J2EE中，${2+“4”}将输出（）。",
			"options": "[\"2+4\",\"6\",\"24\",\"不会输出，因为表达式是错误的\"]",
			"answer": "2",
			"type": "single",
			"hard": 1,
			"explain": null,
			"regtime": "2021-06-24 12:01:13",
			"last_time": null,
			"iscorrect": 0,
			"user_answer": ""
		},
		{
			"id": 223967,
			"title": "J2EE中，JSPEL表达式：${user.loginName}执行效果等同于（）。",
			"options": "[\"<%=user.getLoginName()%>\",\"<%user.getLoginName();%>\",\"<%=user.loginName%>\",\"<%user.loginName;%>\"]",
			"answer": "1",
			"type": "single",
			"hard": 1,
			"explain": null,
			"regtime": "2021-06-24 12:01:13",
			"last_time": null,
			"iscorrect": 0,
			"user_answer": ""
		},
		{
			"id": 223968,
			"title": "J2EE中在JSP中要使用user包中的User类，则以写法正确的是（）。",
			"options": "[\"<jsp:useBeamid=”user”class=”user”import=”user.*”\\/>\",\"<jsp:useBeanid=”user”class=”user.User”scope=”page”\\/>\",\"<jsp:useBeanclass=”user.Use.class”\\/>\",\"<jsp:useBeanname=”user”class=”user.User”\\/>\"]",
			"answer": "2",
			"type": "single",
			"hard": 1,
			"explain": null,
			"regtime": "2021-06-24 12:01:13",
			"last_time": null,
			"iscorrect": 0,
			"user_answer": ""
		},
		{
			"id": 223969,
			"title": "Servlet的初始化参数只能在Servlet的（）方法中获取。",
			"options": "[\"init()\",\"doPost()\",\"doGet()\",\"destroy()\"]",
			"answer": "1",
			"type": "single",
			"hard": 1,
			"explain": null,
			"regtime": "2021-06-24 12:01:13",
			"last_time": null,
			"iscorrect": 0,
			"user_answer": ""
		},
		{
			"id": 223970,
			"title": "不能在不同用户之间共享数据的方法是（）。",
			"options": "[\"利用文件系统\",\"通过ServletContext对象\",\"利用数据库\",\"通过cookie\"]",
			"answer": "4",
			"type": "single",
			"hard": 1,
			"explain": null,
			"regtime": "2021-06-24 12:01:13",
			"last_time": null,
			"iscorrect": 0,
			"user_answer": ""
		},
		{
			"id": 223971,
			"title": "J2EE中，HttpSession接口位于（）包中。",
			"options": "[\"javax.servlet\",\"javax.servlet.session\",\"javax.servlet.http.session\",\"javax.servlet.http\"]",
			"answer": "4",
			"type": "single",
			"hard": 1,
			"explain": null,
			"regtime": "2021-06-24 12:01:13",
			"last_time": null,
			"iscorrect": 0,
			"user_answer": ""
		},
		{
			"id": 223972,
			"title": "EB应用中，常用的会话跟踪方法不包括（）。",
			"options": "[\"隐藏表单域\",\"Cookie\",\"有状态HTTP协议\",\"URL重写\"]",
			"answer": "3",
			"type": "single",
			"hard": 1,
			"explain": null,
			"regtime": "2021-06-24 12:01:13",
			"last_time": null,
			"iscorrect": 0,
			"user_answer": ""
		},
		{
			"id": 223973,
			"title": "在J2EE中，test.jsp文件中有如下一行代码：<jsp:useBeanid=”user”scope=”____”type=”com.UserBean”/>要使user对象在用户对其发出请求时存在，下划线中应填入（）。",
			"options": "[\"application\",\"session\",\"request\",\"page\"]",
			"answer": "3",
			"type": "single",
			"hard": 1,
			"explain": null,
			"regtime": "2021-06-24 12:01:13",
			"last_time": null,
			"iscorrect": 0,
			"user_answer": ""
		},
		{
			"id": 223974,
			"title": "cn是Connection对象，创建Statement对象的方法是（）。",
			"options": "[\"Statementst=newStatement();\",\"Statementst=cn.newStatement();\",\"Statementst=cn.createNewStatement();\",\"Statementst=cn.createStatement();\"]",
			"answer": "4",
			"type": "single",
			"hard": 1,
			"explain": null,
			"regtime": "2021-06-24 12:01:13",
			"last_time": null,
			"iscorrect": 0,
			"user_answer": ""
		},
		{
			"id": 223975,
			"title": "在tomcat的一个虚拟目录里，如果我们需要增加一个我们自己的类文件，那么对于一个已经编译好的类文件我们应该把包拷贝到哪？",
			"options": "[\"WEB-INF\\/\",\"WEB-INF\\/config\",\"WEB-INF\\/classes\",\"WEB-INF\\/lib\"]",
			"answer": "3",
			"type": "single",
			"hard": 1,
			"explain": null,
			"regtime": "2021-06-24 12:01:13",
			"last_time": null,
			"iscorrect": 0,
			"user_answer": ""
		},
		{
			"id": 223976,
			"title": "EL表达式，${10 mod3}，执行结果为（）。",
			"options": "[\"10 mod 3\",\"1\",\"3\",\"null\"]",
			"answer": "2",
			"type": "single",
			"hard": 1,
			"explain": null,
			"regtime": "2021-06-24 12:01:13",
			"last_time": null,
			"iscorrect": 0,
			"user_answer": ""
		},
		{
			"id": 223977,
			"title": "Login.jsp为登录页面，表单代码如下：\n\n<form action=\"index.jsp\"method=\"post\">\n\n     <input type=\"text\" name=\"name\"/>\n\n     <input type=\"submit\" value=\"login\"/>\n\n</form>\n\nIndex.jsp中直接显示用户名，以下哪种代码正确（）。",
			"options": "[\"${requestScope.name}\",\"<%=name%>\",\"${param.name}\",\"<%=param.name%>\"]",
			"answer": "3",
			"type": "single",
			"hard": 1,
			"explain": null,
			"regtime": "2021-06-24 12:01:13",
			"last_time": null,
			"iscorrect": 0,
			"user_answer": ""
		},
		{
			"id": 223978,
			"title": "某JSP中有如下代码，显示结果为（  ）。\n\n<%\n\n         int a = 5;\n\n         request.setAttribute(“a”,”123”);\n\n         session.setAttribute(“a”,”456”);\n\n%>\n\n<c:out value=\"${a}\"/>",
			"options": "[\"5\",\"123\",\"456\",\"null\"]",
			"answer": "2",
			"type": "single",
			"hard": 1,
			"explain": null,
			"regtime": "2021-06-24 12:01:13",
			"last_time": null,
			"iscorrect": 0,
			"user_answer": ""
		},
		{
			"id": 223979,
			"title": "<c:forEach var  = \"i\" begin = \"1\" end =\"5\" step = \"2\">\n\n         <c:outvalue=“${i}”/>\n\n</c:forEach>",
			"options": "[\"1 2 3 4 5\",\"1 3 5\",\"i i i\",\"15\"]",
			"answer": "2",
			"type": "single",
			"hard": 1,
			"explain": null,
			"regtime": "2021-06-24 12:01:13",
			"last_time": null,
			"iscorrect": 0,
			"user_answer": ""
		},
		{
			"id": 223980,
			"title": "request.setAttribute(\"user\",\"svse\");         \n\nsession.setAttribute(\"user\",\"bob\");\n\n使用{user}则显示（）。",
			"options": "[\"null\",\"svse\",\"bob\",\"啥也没有\"]",
			"answer": "2",
			"type": "single",
			"hard": 1,
			"explain": null,
			"regtime": "2021-06-24 12:01:13",
			"last_time": null,
			"iscorrect": 0,
			"user_answer": ""
		},
		{
			"id": 223981,
			"title": "在HTTP协议中，用于发送大量数据的方法是（）。",
			"options": "[\"get\",\"post\",\"put\",\"options\"]",
			"answer": "2",
			"type": "single",
			"hard": 1,
			"explain": null,
			"regtime": "2021-06-24 12:01:13",
			"last_time": null,
			"iscorrect": 0,
			"user_answer": ""
		},
		{
			"id": 223982,
			"title": "J2EE 中，（）类型的（ ）方法用于得到会话。",
			"options": "[\"HttpServletRequest、getSession\",\"HttpServletResponse、newSession\",\"HtttpSession、newInstance\",\"HttpSession、getSession\"]",
			"answer": "1",
			"type": "single",
			"hard": 1,
			"explain": null,
			"regtime": "2021-06-24 12:01:13",
			"last_time": null,
			"iscorrect": 0,
			"user_answer": ""
		},
		{
			"id": 223983,
			"title": "HTML语言中<br>的作用是字体加粗。",
			"options": "",
			"answer": "-1",
			"type": "charge",
			"hard": 1,
			"explain": null,
			"regtime": "2021-06-24 12:01:13",
			"last_time": null,
			"iscorrect": 0,
			"user_answer": ""
		},
		{
			"id": 223984,
			"title": "JSP和HTML语言一样，主要用来开发静态网页。",
			"options": "",
			"answer": "-1",
			"type": "charge",
			"hard": 1,
			"explain": null,
			"regtime": "2021-06-24 12:01:13",
			"last_time": null,
			"iscorrect": 0,
			"user_answer": ""
		},
		{
			"id": 223985,
			"title": "表单的提交方法包括get和put。",
			"options": "",
			"answer": "-1",
			"type": "charge",
			"hard": 1,
			"explain": null,
			"regtime": "2021-06-24 12:01:13",
			"last_time": null,
			"iscorrect": 0,
			"user_answer": ""
		},
		{
			"id": 223986,
			"title": "可以通过超链接在页面间传递数据，例如：<Ahref=”login.jsp?username=admin&action=login”>登录</a>。",
			"options": "",
			"answer": "1",
			"type": "charge",
			"hard": 1,
			"explain": null,
			"regtime": "2021-06-24 12:01:14",
			"last_time": null,
			"iscorrect": 0,
			"user_answer": ""
		},
		{
			"id": 223987,
			"title": "利用JDBC获取数据库连接时通常使用如语句：DriverManager.getConnection(url,dbuser,dbpass)，其中url为数据库驱动的地址。",
			"options": "",
			"answer": "-1",
			"type": "charge",
			"hard": 1,
			"explain": null,
			"regtime": "2021-06-24 12:01:14",
			"last_time": null,
			"iscorrect": 0,
			"user_answer": ""
		},
		{
			"id": 223988,
			"title": "当在JSP页面中通过<jsp:forward>指令将页面请求转发到的页面中，可以共享一个page范围内的数据。",
			"options": "",
			"answer": "-1",
			"type": "charge",
			"hard": 1,
			"explain": null,
			"regtime": "2021-06-24 12:01:14",
			"last_time": null,
			"iscorrect": 0,
			"user_answer": ""
		},
		{
			"id": 223989,
			"title": "JSP就是把Java代码嵌套在HTML中，JSP程序结构分为两大部分：静态的HTML代码，动态的Java代码以及JSP本身的标签和指令。",
			"options": "",
			"answer": "1",
			"type": "charge",
			"hard": 1,
			"explain": null,
			"regtime": "2021-06-24 12:01:14",
			"last_time": null,
			"iscorrect": 0,
			"user_answer": ""
		},
		{
			"id": 223990,
			"title": "连接到同一web服务器的各客户端共享该服务器的application对象。",
			"options": "",
			"answer": "1",
			"type": "charge",
			"hard": 1,
			"explain": null,
			"regtime": "2021-06-24 12:01:14",
			"last_time": null,
			"iscorrect": 0,
			"user_answer": ""
		},
		{
			"id": 223991,
			"title": "若web项目中有多个页面需要使用某字符串，应使用request.setAttribute()将该字符串保存到request中。",
			"options": "",
			"answer": "-1",
			"type": "charge",
			"hard": 1,
			"explain": null,
			"regtime": "2021-06-24 12:01:14",
			"last_time": null,
			"iscorrect": 0,
			"user_answer": ""
		},
		{
			"id": 223992,
			"title": "cookie保存在服务器端。",
			"options": "",
			"answer": "-1",
			"type": "charge",
			"hard": 1,
			"explain": null,
			"regtime": "2021-06-24 12:01:14",
			"last_time": null,
			"iscorrect": 0,
			"user_answer": ""
		}
	]
}